package com.interview.score.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MVCConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addRedirectViewController("/","login.html");
        registry.addViewController("login.html").setViewName("login");

        registry.addRedirectViewController("/supervisor-init","supervisor-init.html");
        registry.addViewController("supervisor-init.html").setViewName("supervisor-init");

        registry.addRedirectViewController("/examiner-score","examiner-score.html");
        registry.addViewController("examiner-score.html").setViewName("examiner-score");



    }
}
